<?php
/***************************************************************************
 *
 *   copyright            : (C) 2005 Winds of Storm
 *
 *   $Id: smf_db.php,v 1.3 2005/12/13 20:07:46 nathan Exp $
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

require("db." . $phpEx);

// Make the database connection to board db; chat db is automatic.
//$db2 = new sql_db($dbhost2, $dbuser2, $dbpasswd2, $dbname2, false);
//if(!$db2->db_connect_id)
//{
//	die("Could not connect to the database $dbname2 @ $dbhost2");
//}

$db2			= $db;

$smf_prefix		= "smf_";
$users_table		= $smf_prefix . "members";
$user_id_field		= "ID_MEMBER";
$user_name_field	= "memberName";
$user_pass_field	= "passwd";
$avatar_field		= "avatar";
$g_id_f			= 'ID_GROUP';

$smilies_table          = $smf_prefix . "smileys";
$smile_pattern_field    = "code";
$smile_url_field        = "filename";

require("load_config." . $phpEx);

$smilies_path           = $config['FORUM_BASE_URL'] . "Smileys/Impetus/";
$avatars_html_path      = $config['FORUM_BASE_URL'] . "avatars/";
$avatars_upload_path    = $config['FORUM_BASE_URL'] . "attachments/";
$profile_url		= $config['FORUM_BASE_URL'] . "index.php?action=profile;u=";

?>
